export default {
	state: {
		list:[],
	},
	getters: {
		getList:state=>{
			return state.list;
		}
	},
	mutations: {
		addKey(state,key){
			let x =  state.list.indexOf(key);
			if(x == -1){
				state.list.push(key);
			}
		}
	},
	actions: {
		addKeyWord(context,keyword){
			context.commit('addKey',keyword);
		}
	}
}